package cn.jee;

import cn.jee.dao.StuDao;
import jdk.jfr.Enabled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement//启用事务管理
@EnableCaching
@EnableJpaRepositories
public class SpringBootLessonApplication  implements CommandLineRunner {
@Autowired
  StuDao stuDao;
	public static void main(String[] args) {
    SpringApplication.run(SpringBootLessonApplication.class, args);
	}
  @Override
  public void run(String... args) throws Exception {
    //stuDao.tx();

  }
}
